<template>
	<view>
		<web-view
		:src="matchContent.matchTemplate.matchUrl+'?matchId='+matchId+'&formId='+ formId+'&formStatus='+formStatus+'&isBm='+isBm+'&matchLogo='+matchContent.matchTemplate.matchLogo+'&timestamp='+new Date().getTime()" >
		</web-view>
	</view>
</template>

<script>
	import {mapActions} from 'vuex'
	export default {
		data() {
			return {
				matchContent:null,
				matchId: '',
				 formId:'',
				formStatus:'',
				isBm:0,
			};
			
		},
		onLoad(params) {
			this.matchId=params.matchId?params.matchId:''
			this.formId=params.formId?params.formId:''
			this.formStatus=params.formStatus?params.formStatus:'1'
			this.isBm=params.isBm?params.isBm:0
			//赛事详情
				this.getSaishiContentAction({matchId:params.matchId,success:res=>{
					this.matchContent={...res.data.data}
				}})
		},
		methods:{
			...mapActions('m_saishi',['getSaishiContentAction']),
			//路由跳转
			goPage(url,obj){
				uni.$u.route(url,obj);
			},
		}
	}
</script>

<style lang="scss">

</style>
